package com.czy.workflow.core.validator;

import com.czy.workflow.core.context.FlowContext;
import com.czy.workflow.core.model.FlowNode;
import com.czy.workflow.core.model.OperationType;
import com.czy.workflow.core.model.TaskInfo;

public class FlowAuthorityValidator implements FlowValidator{

    @Override
    public boolean validate(FlowContext flowContext, TaskInfo taskInfo) {
        //校验用户权限
        return flowContext.getFlowService().validateNodeAuthority(taskInfo);
    }
}
